import Cookies from 'js-cookie'

export default class Auth {

  constructor() {
    this.checkToken()
  }

  /**
   * token 判断
   */
  checkToken () {
    const token = Cookies.get('token')
    if (!token) {
      window.location.href = '/login.html'
    }
  }

}